using System.Collections.Generic;
using Verse;

namespace RimWorld;

public class GenStep_Fog : GenStep
{
	public override int SeedPart => 1568957891;

	public override void Generate(Map map, GenStepParams parms)
	{
		DeepProfiler.Start("GenerateInitialFogGrid");
		map.fogGrid.SetAllFogged();
		FloodFillerFog.FloodUnfog(MapGenerator.PlayerStartSpot, map);
		List<IntVec3> rootsToUnfog = MapGenerator.rootsToUnfog;
		for (int i = 0; i < rootsToUnfog.Count; i++)
		{
			FloodFillerFog.FloodUnfog(rootsToUnfog[i], map);
		}
		DeepProfiler.End();
	}
}
